package com.hutu.entity.system;

import com.baomidou.mybatisplus.annotation.*;
import com.hutu.core.annotation.ExcelColumn;
import com.hutu.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author admin
 * @since 2022-01-27
 */
@Data
@Accessors(chain = true)
@TableName("sys_staff")
@ApiModel(value = "后台用户对象", description = "")
public class Staff extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("后台用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ExcelColumn("工号")
    @ApiModelProperty("后台用户编码")
    @TableField("code")
    private String code;

    @ExcelColumn("姓名")
    @ApiModelProperty("后台用户姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("性别，0男，1女，默认男")
    @TableField("gender")
    private Integer gender;

    @ExcelColumn("地址")
    @ApiModelProperty("后台用户家庭住址")
    @TableField("address")
    private String address;

    @ApiModelProperty("后台用户密码")
    @TableField("pwd")
    private String password;

    @ApiModelProperty("后台用户头像")
    @TableField("avatar")
    private String avatar;

    @ExcelColumn("生日")
    @ApiModelProperty("后台用户生日")
    @TableField("birthday")
    private Date birthday;

    @ExcelColumn("电话")
    @ApiModelProperty("后台用户电话")
    @TableField("phone")
    private String phone;

    @ExcelColumn("备注")
    @ApiModelProperty("后台用户备注")
    @TableField("remark")
    private String remark;

    @ExcelColumn("部门id")
    @ApiModelProperty("部门id")
    @TableField("dept_id")
    private Integer deptId;

    @ApiModelProperty("后台用户状态，0离职，1在职，2禁用")
    @TableField("status")
    private Integer status;

}
